/**
 * 
 */
function insertMessage(){
	var message = {
			position:"码农",
			salary:100,
			context:"123",
			startDate:"2018-02-26",
			endDate:"2018-02-26",
			total:3,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/insertMessage",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(message),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function updateMessage(){
	var message = {
			messageid:2,
			position:"码2农11",
			salary:1001,
			context:"1211",
			startDate:"2018-12-26",
			endDate:"2018-12-26",
			total:33,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/updateMessage",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(message),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function deleteMessage(){
	var message = {
			messageid:3,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/deleteMessage",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(message),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function findAllMessage(){
	var message = {
			//position:"码农",
			startDate:"2018-02-26"
	}
	var messageMap = {
			message : message,
			page:1,
			pageSize:4,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/findAllMessage",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(messageMap),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function findMessageByid(){
	var message = {
			messageid:16,		
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/findMessageByid",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(message),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}